package com.lzq.service;

import java.io.Serializable;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyBean implements Serializable,MyInterface {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String propery1;
	private String propery2;
	private String propery3;
	private String propery4;
	@Autowired
	private MyCourseService myCourseService;
	
	public MyBean() {
		System.out.println("调用MyBean的构造方法");
	}

	@PostConstruct
	public void init() {
		System.out.println("调用MyBean的@PostConstruct即init-method方法");
	}


	@Override
	public void hello() {
		System.out.println("Hello");
		
	}




	public String getPropery1() {
		return propery1;
	}




	public void setPropery1(String propery1) {
		this.propery1 = propery1;
	}




	public String getPropery2() {
		return propery2;
	}




	public void setPropery2(String propery2) {
		this.propery2 = propery2;
	}




	public String getPropery3() {
		return propery3;
	}




	public void setPropery3(String propery3) {
		this.propery3 = propery3;
	}




	public String getPropery4() {
		return propery4;
	}




	public void setPropery4(String propery4) {
		this.propery4 = propery4;
	}




	public MyCourseService getMyCourseService() {
		return myCourseService;
	}




	public void setMyCourseService(MyCourseService myCourseService) {
		this.myCourseService = myCourseService;
	}

	
	
	
}
